-
Notifications
You must be signed in to change notification settings - Fork 570
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
profiles: add auto-generated private-etc lines to all profiles #2093
Conversation
Very nice! Does there need to be some fine-tuning still? I'm seeing a lot of things being added (like X11) that I don't recall being needed very much in Cheers! |
Yes, I don't like how much is added either, but 40 items in /etc is way better then 200+. Also considering many profiles lack a Feature "detection" is handled by and that info gets passed here and there is also some special handling here |
I see some obvious issues like dnsmasq not containing |
@Vincent43 after I finish tweaking the program I plan to go back through and add any missing specific ones. I have a list of other profiles too: |
Latest version has All profiles with a previously existing enabled I will start going through profiles, uncommenting and testing them, and whitelisting them in the |
Okay, I've tested working ~50 profiles so far. There is still the issue of the large number of added files/paths, but looking at it a bit:
Once more profiles have their
|
I think the kde4rc, kde5rc are easier to add manually. It is now in large number of profiles, but only some KDE apps (maybe less than 20) need them. |
@smitsohu 20 is still a lot. The program does try to determine if it is a kde/qt app and exclude those if it isn't. But if it is determined to be a "gui" app, then it defaults to including gtk/kde/qt files. See: |
It's cool, I like our program and the systematic approach. I was only speaking for myself when I said this way round is easier than that way, maybe we can clean up false positives later on if there are any |
@smitsohu I have refined the gtk/qt/kde detection. Only 13 profiles now include kde*rc, compared to ~200+ before. Edit: I think I am back to where I started, there are now many KDE apps missing kde*rc. |
@SkewedZeppelin can you tell why |
@Vincent43 I've updated it to only include those where they were previously. Any other files? Do we really need protocol, services, rpc? hostname? |
Thx. protocols,services and rpc aren't privacy sensitive so they can stay. As for hostname I wonder if we can add it simultaneously with |
A few thoughts/suggestions... To figure out additional files/directories a program could be accessing, try running
If you have a Debian system, you can also check
|
Okay, I have added support to get files from both I am going to make a VM with Ubuntu with as many supported programs as possible installed and let it run and hopefully it should get most of our bases covered. |
Btw as mentioned, for apt-file you don't need to have the package installed. :-) |
Yes, but I'll need them installed for Edit: I think I might need to take a different approach. Create a basic program that runs and outputs any files gathered through the various methods and saves them, and run that on multiple systems instead. And then combine them all. |
Okay, so my solution: create two programs. I have created the gatherer program and now just need to rewrite the current program to take its output. An example output of the gatherer
|
Okay, I have implemented the two program approach. The latest version is generated using that new version. |
This PR is being superseded by #2745 , isn't it? |
Aha. Looks like this one is really no merge candidate... Some profiles already have very specific |
@vutny I've been busy, but I can rebase it sometime soon probably. edit: done 🚀 |
- This includes a workaround for private-etc's lack of globbing support
DO NOT MERGE!
This adds automatically generated
private-etc
lines to ~380 profiles.This basically closes #1734
Program source here: https://gist.github.com/SkewedZeppelin/12d5bd24fca41f3c2a4b54d919c8ab44
This shoudn't be merged until
private-etc
supports globbing.And we should also wait until after 0.9.56 is released.Any feedback is appreciated.